package com.rzj.demo.demos.controller;

import com.rzj.demo.demos.mapper.UserInfoMapper;
import com.rzj.demo.demos.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

// 检测接口是否正确
@RestController
public class UserInfoController {
    @Autowired
    private UserInfoMapper userInfoMapper;

    @RequestMapping("/selectAll")
    List<UserInfo> selectAll(){
        return userInfoMapper.selectAll();
    }
}
